/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const manageRouter = {
  path: '/system',
  component: Layout,
  name: 'Manage',
  meta: {
    title: 'account',
    icon: 'component'
  },
  children: [
    {
      path: 'admin',
      component: () => import('@/views/manage/admin/index'), // Parent router-view
      name: 'Admin',
      meta: { title: 'accountAdmin',icon: 'el-icon-s-custom' },
    },
    {
      path: 'user',
      name: 'User',
      component: () => import('@/views/manage/user/index'),
      meta: { title: 'accountUser',icon: 'peoples' }
    },
    {
      path: 'list',
      component: () => import('@/views/career/list/index'),
      name: 'List',
      meta: { title: 'careerList',icon: 'form' },
    },
    {
      path: 'company',
      component: () => import('@/views/career/company/index'),
      name: 'Company',
      meta: { title: 'companyManage',icon: 'tree-table' }
    },
    {
      path: 'news',
      component: () => import('@/views/news/index.vue'),
      name: 'News',
      meta: { title: 'news',icon: 'el-icon-news' }
    },
    {
      path: 'save-news',
      hidden: true,
      component: () => import('@/views/news/save/index.vue'),
      name: 'SaveNews',
      meta: { title: 'save_news',icon: 'el-icon-news' }
    },
    {
      path: 'notice',
      component: () => import('@/views/notice/index.vue'),
      name: 'Notice',
      meta: { title: 'notice',icon: 'el-icon-s-comment' }
    },
    {
      path: 'resume',
      name: 'Resume',
      component: () => import('@/views/resume/index.vue'),
      meta: { title: 'resume',icon: 'el-icon-edit-outline' },
      children: [
        {
          path: 'info',
          component: () => import('@/views/resume/info/index.vue'),
          name: 'Info',
          meta: { title: 'info',icon: 'el-icon-document' },
          children: [
            {
              path: "platforms",
              component: () => import("@/views/resume/info/platform/index.vue"),
              name: "Platforms",
              meta: { title: "platforms", icon: 'el-icon-document' }
            },
            {
              path: "files",
              component: () => import("@/views/resume/info/files/index.vue"),
              name: "Files",
              meta: { title: "files", icon: 'el-icon-document' }
            }
          ]
        },
        {
          path: 'audit',
          component: () => import('@/views/resume/audit/index.vue'),
          name: 'Audit',
          meta: { title: 'audit',icon: 'el-icon-circle-check' }
        }
      ]
    },
    {
      path: 'platform',
      component: () => import('@/views/platform/index.vue'),
      name: 'Platform',
      hidden: true,
      meta: { title: 'platform',icon: 'el-icon-set-up' }
    },
  ]
}

export default manageRouter
